package com.yonyou.pmclouds.basecom.conf;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "openapi")
public class OpenApiProperties {
    private String accessTenant;

    public String[] getTenantInfos(){
        if(StringUtils.isEmpty(getAccessTenant()))
            return new String[0];
        return getAccessTenant().split(",");
    }
}
